layui.use(['layer','form', 'util', 'element'], function() {
  	var $ = layui.jquery,
    layer = layui.layer,
    element = layui.element(),
    util = layui.util;
  /**
   * 使用内部工具组件
   */
  util.fixbar();
  /**
   ****************************jq扩展函数*******************************v**
   */
$.ajax({
	type:"get",
	url: url +'/ic-iot/users/'+adminId+'/devices/inspection/'+deviceInspectionId,
	dataType : 'json',
	async:false,
	beforeSend: function(request) {
        request.setRequestHeader("accessToken", accessToken);
    },
	success : function(data) {
		if(data['code'] == 1){
			$("#acceptancePerson").val(data.result.acceptancePerson);
			$("#inspectionPerson").val(data.result.inspectionPerson);
			$("#inspectionDesc").val(data.result.inspectionDesc);
			$("#inspectionTime").val(replaceTime(data.result.inspectionTime / 1000));
			$("#deviceNo").val(data.result.deviceNo);
			$("#inspectionPhone").val(data.result.inspectionPhone);
			$("#deviceName").val(data.result.deviceName);
		}else{
			ifajax(data);
		}
	}
});
});

